#include "histogram.h"

Histogram::Histogram()
{
    ownerImage=NULL;
    histImage=NULL;
}

Histogram::Histogram(QImage* im)
{
    ownerImage=im;
    histImage=NULL;
}

Histogram::~Histogram()
{
    if(histImage!=NULL)
        delete histImage;
}

void Histogram::setOwnerImage(QImage *im)
{
    ownerImage=im;
}

QImage* Histogram::getOwnerImage()
{
    return ownerImage;
}

QImage* Histogram::getHistImage()
{
    return histImage;
}

